package com.tgy.dao;

import com.tgy.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/***
 * @ClassName: UserMapper
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 15:03 2021/12/14
 * @version : V1.0
 */
public interface UserMapper {
    List<User> getUsers();
    //根据id查询用户
    User selectUserById(int id);
    //insert
    int insertUser(User user);
    //update
    int updUser(User user);
    //delete
    int delUser(int id);
    //模糊查询
    List<User> getUsersLike(String name);

}
